package com.android.serialport;

import com.android.serialport.itf.ParseDataListener;
import com.rfid.protocol.Instruction;

/**
 * @author Administrator
 * @date 2021/2/2
 */
public class WriteFlagCommand extends Instruction {
    private final ParseDataListener mInventoryListener;

    public WriteFlagCommand(ParseDataListener inventoryListener) {
        mInventoryListener = inventoryListener;
    }

    @Override
    public byte[] getCommand() {
        return new byte[]{(byte) 0xFE, 0x27};
    }

    @Override
    public void invoke(byte[] data) {
        mInventoryListener.onData("WriteFlag", data);
    }
}